import * as THREE from 'three';
import { GLTFLoader } from 'three/addons/loaders/GLTFLoader.js';
const loader = new GLTFLoader();
const model = new THREE.Group();
loader.load('/飞机.glb',(gltf)=>{
    const fly = gltf.scene
    fly.position.set(10,10,0);
    // 飞机添加坐标轴
    const axesHelper = new THREE.AxesHelper(10);
    fly.add(axesHelper);
    // 欧拉角度对象
    const euler = new THREE.Euler()
    // 欧拉角度的旋转顺序
    euler.order= 'XYZ'
    euler.x = Math.PI/3
    euler.y = Math.PI/3
    fly.rotation.copy(euler)
    model.add(fly);
})

export default {model};